package com.admin.mapper;

import com.admin.domain.Declare;
import com.admin.vo.declare.DeclareBatchScoreItemInfoVO;
import com.admin.vo.declare.ProvinceDeclareVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mapper类
 */
public interface DeclareMapper extends BaseMapper<Declare> {


    /**
     * 涉及 市 个数
     * @param params
     * @return
     */
    Integer countCityNum(Map<String,Object> params);

    /**
     * 涉及区县个数
     * @param params
     * @return
     */
    Integer countAreaNum(Map<String,Object> params);

    /**
     * 涉及乡镇个数
     * @param params
     * @return
     */
    Integer countCountryNum(Map<String,Object> params);


    /**
     * 市 批量评分 - 涉及权限 个数
     * @param params
     * @return
     */
    List<DeclareBatchScoreItemInfoVO> getGroupArea(Map<String, Object> params);

    /**
     * 省 批量 评分 - 每个市 -申报个数
     * @param params
     * @return
     */
    List<DeclareBatchScoreItemInfoVO> getGroupCity(Map<String,Object> params);



    int updateCitySample(@Param("declareIds") List<Integer> declareIds);

    int updateProvinceSample(@Param("declareIds") List<Integer> declareIds);

    List<Integer> selectIdsByMap(Map<String,Object> params);

    List<Declare> selectSimpleByIds(@Param("idList") List<Integer> idList);

    List<Declare> selectSimpleByMap(Map<String,Object> params);


    List<ProvinceDeclareVO> selectProvinceDeclares(Map<String,Object> params);

}